<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_pca.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_5de9c861c65ef79c1ee42b85520795c1.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">wb32l003_pca.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This file provides all the PCA firmware functions.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="wb32l003__pca_8h_source.html">wb32l003_pca.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="wb32l003__rcc_8h_source.html">wb32l003_rcc.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gab97a81e235b9e8d9a8bd9244619eba34"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#gab97a81e235b9e8d9a8bd9244619eba34">PCA_DeInit</a> (void)</td></tr>
<tr class="memdesc:gab97a81e235b9e8d9a8bd9244619eba34"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the PCA peripheral registers to their default reset values.  <a href="group___p_c_a___private___functions.html#gab97a81e235b9e8d9a8bd9244619eba34">More...</a><br /></td></tr>
<tr class="separator:gab97a81e235b9e8d9a8bd9244619eba34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2708d3c74da3ca91a99876370acaecfc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga2708d3c74da3ca91a99876370acaecfc">PCA_Cmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga2708d3c74da3ca91a99876370acaecfc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the PCA peripheral.  <a href="group___p_c_a___private___functions.html#ga2708d3c74da3ca91a99876370acaecfc">More...</a><br /></td></tr>
<tr class="separator:ga2708d3c74da3ca91a99876370acaecfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8b7713c6e7622a517a51d8ac3c497527"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga8b7713c6e7622a517a51d8ac3c497527">PCA_BaseInit</a> (<a class="el" href="struct_p_c_a___base_init_type_def.html">PCA_BaseInitTypeDef</a> *PCA_InitStruct)</td></tr>
<tr class="memdesc:ga8b7713c6e7622a517a51d8ac3c497527"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the PCA Unit basic function according to the specified parameters in the PCA_HandleTypeDef.  <a href="group___p_c_a___private___functions.html#ga8b7713c6e7622a517a51d8ac3c497527">More...</a><br /></td></tr>
<tr class="separator:ga8b7713c6e7622a517a51d8ac3c497527"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0d80e150fa24aad4107a4244f93ab16"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#gaf0d80e150fa24aad4107a4244f93ab16">PCA_OC_Config</a> (<a class="el" href="struct_p_c_a___o_c___init_type_def.html">PCA_OC_InitTypeDef</a> *OC_Config)</td></tr>
<tr class="memdesc:gaf0d80e150fa24aad4107a4244f93ab16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the PCA output compare Channels according to the specified parameters in the <a class="el" href="struct_p_c_a___o_c___init_type_def.html" title="PCA Output Compare Configuration Structure definition.">PCA_OC_InitTypeDef</a>.  <a href="group___p_c_a___private___functions.html#gaf0d80e150fa24aad4107a4244f93ab16">More...</a><br /></td></tr>
<tr class="separator:gaf0d80e150fa24aad4107a4244f93ab16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga73b40ab08526d1061e2976323b91c011"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga73b40ab08526d1061e2976323b91c011">PCA_OC_Cmd</a> (uint32_t Channel, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga73b40ab08526d1061e2976323b91c011"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the PCA output compare generation.  <a href="group___p_c_a___private___functions.html#ga73b40ab08526d1061e2976323b91c011">More...</a><br /></td></tr>
<tr class="separator:ga73b40ab08526d1061e2976323b91c011"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga171398258479aa84481d20b9b280ec9c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga171398258479aa84481d20b9b280ec9c">PCA_OC_INVCmd</a> (uint32_t Channel, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga171398258479aa84481d20b9b280ec9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the PCA inverse output compare generation.  <a href="group___p_c_a___private___functions.html#ga171398258479aa84481d20b9b280ec9c">More...</a><br /></td></tr>
<tr class="separator:ga171398258479aa84481d20b9b280ec9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga967ca99641e3595e38ebc3fc2416d57c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga967ca99641e3595e38ebc3fc2416d57c">PCA_IC_Config</a> (<a class="el" href="struct_p_c_a___i_c___init_type_def.html">PCA_IC_InitTypeDef</a> *IC_Config)</td></tr>
<tr class="memdesc:ga967ca99641e3595e38ebc3fc2416d57c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the PCA input capture Channels according to the specified parameters in the <a class="el" href="struct_p_c_a___i_c___init_type_def.html" title="PCA Input Capture Configuration Structure definition.">PCA_IC_InitTypeDef</a>.  <a href="group___p_c_a___private___functions.html#ga967ca99641e3595e38ebc3fc2416d57c">More...</a><br /></td></tr>
<tr class="separator:ga967ca99641e3595e38ebc3fc2416d57c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga66a4eddd3a03c8f134183bcff0cebb3e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga66a4eddd3a03c8f134183bcff0cebb3e">PCA_ITConfig</a> (uint8_t PCA_IT, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga66a4eddd3a03c8f134183bcff0cebb3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the specified PCA interrupt.  <a href="group___p_c_a___private___functions.html#ga66a4eddd3a03c8f134183bcff0cebb3e">More...</a><br /></td></tr>
<tr class="separator:ga66a4eddd3a03c8f134183bcff0cebb3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab5e4f13f9f080e7962477fa6a0a823bf"><td class="memItemLeft" align="right" valign="top">ITStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#gab5e4f13f9f080e7962477fa6a0a823bf">PCA_GetITStatus</a> (uint8_t PCA_IT)</td></tr>
<tr class="memdesc:gab5e4f13f9f080e7962477fa6a0a823bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified PCA interrupt is set or not.  <a href="group___p_c_a___private___functions.html#gab5e4f13f9f080e7962477fa6a0a823bf">More...</a><br /></td></tr>
<tr class="separator:gab5e4f13f9f080e7962477fa6a0a823bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3811dff53cc45c4f10f9373aad3eee4a"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga3811dff53cc45c4f10f9373aad3eee4a">PCA_GetFlagStatus</a> (uint8_t PCA_FLAG)</td></tr>
<tr class="memdesc:ga3811dff53cc45c4f10f9373aad3eee4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified PCA flag is set or not.  <a href="group___p_c_a___private___functions.html#ga3811dff53cc45c4f10f9373aad3eee4a">More...</a><br /></td></tr>
<tr class="separator:ga3811dff53cc45c4f10f9373aad3eee4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4dc308ce812dd8ede71b5b699d84b1a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga4dc308ce812dd8ede71b5b699d84b1a9">PCA_ClearITPendingBit</a> (uint8_t PCA_IT)</td></tr>
<tr class="memdesc:ga4dc308ce812dd8ede71b5b699d84b1a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the PCA's interrupt pending bits.  <a href="group___p_c_a___private___functions.html#ga4dc308ce812dd8ede71b5b699d84b1a9">More...</a><br /></td></tr>
<tr class="separator:ga4dc308ce812dd8ede71b5b699d84b1a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae004d9f618bd46ac9b084ba700bb0d01"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#gae004d9f618bd46ac9b084ba700bb0d01">PCA_ClearFlag</a> (uint8_t PCA_FLAG)</td></tr>
<tr class="memdesc:gae004d9f618bd46ac9b084ba700bb0d01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the PCA's pending flags.  <a href="group___p_c_a___private___functions.html#gae004d9f618bd46ac9b084ba700bb0d01">More...</a><br /></td></tr>
<tr class="separator:gae004d9f618bd46ac9b084ba700bb0d01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8a89870fbe89fe0c70e0f59a100b3f5f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga8a89870fbe89fe0c70e0f59a100b3f5f">PCA_SetPWMDuty</a> (uint32_t Channel, uint8_t Duty)</td></tr>
<tr class="memdesc:ga8a89870fbe89fe0c70e0f59a100b3f5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets PCA PWM ouput duty cycle.  <a href="group___p_c_a___private___functions.html#ga8a89870fbe89fe0c70e0f59a100b3f5f">More...</a><br /></td></tr>
<tr class="separator:ga8a89870fbe89fe0c70e0f59a100b3f5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae90bab8b8bf3a4b1cccdd5e12d81a675"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#gae90bab8b8bf3a4b1cccdd5e12d81a675">PCA_IC0_TriggerConfig</a> (uint32_t PCA_Trigger_ICPolarity)</td></tr>
<tr class="memdesc:gae90bab8b8bf3a4b1cccdd5e12d81a675"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the Channel0 (PCA Input capture).  <a href="group___p_c_a___private___functions.html#gae90bab8b8bf3a4b1cccdd5e12d81a675">More...</a><br /></td></tr>
<tr class="separator:gae90bab8b8bf3a4b1cccdd5e12d81a675"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf8598c00201b2ba51075ffb37f58571f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#gaf8598c00201b2ba51075ffb37f58571f">PCA_IC1_TriggerConfig</a> (uint32_t PCA_Trigger_ICPolarity)</td></tr>
<tr class="memdesc:gaf8598c00201b2ba51075ffb37f58571f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the Channel1 (PCA Input capture).  <a href="group___p_c_a___private___functions.html#gaf8598c00201b2ba51075ffb37f58571f">More...</a><br /></td></tr>
<tr class="separator:gaf8598c00201b2ba51075ffb37f58571f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga065d7157f6cd2f9bbff49eaa308a05e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga065d7157f6cd2f9bbff49eaa308a05e2">PCA_IC2_TriggerConfig</a> (uint32_t PCA_Trigger_ICPolarity)</td></tr>
<tr class="memdesc:ga065d7157f6cd2f9bbff49eaa308a05e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the Channel2 (PCA Input capture).  <a href="group___p_c_a___private___functions.html#ga065d7157f6cd2f9bbff49eaa308a05e2">More...</a><br /></td></tr>
<tr class="separator:ga065d7157f6cd2f9bbff49eaa308a05e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2c480dae466f9614741031d439c2e4a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga2c480dae466f9614741031d439c2e4a9">PCA_IC3_TriggerConfig</a> (uint32_t PCA_Trigger_ICPolarity)</td></tr>
<tr class="memdesc:ga2c480dae466f9614741031d439c2e4a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the Channel3 (PCA Input capture).  <a href="group___p_c_a___private___functions.html#ga2c480dae466f9614741031d439c2e4a9">More...</a><br /></td></tr>
<tr class="separator:ga2c480dae466f9614741031d439c2e4a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad58462fa11fae84c6bd44f9d0616c26e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#gad58462fa11fae84c6bd44f9d0616c26e">PCA_IC4_TriggerConfig</a> (uint32_t PCA_Trigger_ICPolarity)</td></tr>
<tr class="memdesc:gad58462fa11fae84c6bd44f9d0616c26e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the Channel4 (PCA Input capture).  <a href="group___p_c_a___private___functions.html#gad58462fa11fae84c6bd44f9d0616c26e">More...</a><br /></td></tr>
<tr class="separator:gad58462fa11fae84c6bd44f9d0616c26e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9876456753dbb5955606cb223a253440"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_c_a___private___functions.html#ga9876456753dbb5955606cb223a253440">PCA_GetCompareValue</a> (uint32_t Channel)</td></tr>
<tr class="memdesc:ga9876456753dbb5955606cb223a253440"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the PCA Capture Compare Register value on runtime.  <a href="group___p_c_a___private___functions.html#ga9876456753dbb5955606cb223a253440">More...</a><br /></td></tr>
<tr class="separator:ga9876456753dbb5955606cb223a253440"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This file provides all the PCA firmware functions. </p>
<dl class="section author"><dt>Author</dt><dd>Westberry Application Team </dd></dl>
<dl class="section version"><dt>Version</dt><dd>V0.0.3 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>12-April-2023 </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
